import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    children:[ 
  {
    path: '/homeitem',
    name: 'homeitem',
    component: () => import('../views/HomeItem.vue')
  },
  {
    path: '/homelist1',
    name: 'homelist1',
    component: () => import('../views/Homelist.vue')
  },
  {
    path: '/homelist2',
    name: 'homelist2',
    component: () => import('../views/HomeList2.vue')
  },
  {
    path: '/homelist3',
    name: 'homelist3',
    component: () => import('../views/HomeList3.vue')
  }
  ,
  {
    path: '/side1',
    name: 'side1',
    component: () => import('../views/Side1.vue')
  }
  ,
  {
    path: '/side2',
    name: 'side2',
    component: () => import('../views/Side2.vue')
  }
    ]
  }
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
